﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Widgetsphere.Autos.Websitev2.UserControls
{
    public partial class MetroDimensionControl : DimensionDisplayControl
    {
        #region Constructors

        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            this.LinkSetup += new EventHandler<DimensionDisplayEventArgs>(DimensionControl_LinkSetup);
        }

        #endregion

        #region Event Handlers

        private void DimensionControl_LinkSetup(object sender, DimensionDisplayEventArgs e)
        {
            e.Query.Metro = e.Refinement.FieldValue;
            e.Query.DimensionValueList.Add(e.Refinement.DVIdx);
        }

        #endregion

        #region Property Implementations

        protected override PlaceHolder MorePanel
        {
            get { return pnlMore; }
        }

        protected override Table MainTable
        {
            get { return tableMain; }
        }

        #endregion

    }
}